<?php
class NewFriendInviteListAction extends SzAbstractAction {
    protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * @param $userId
     * @param $reqTime
     * @return SzResponse
     */
    public function execute($userId,$reqTime) {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        $data = NewFriendService::get()->getInviteFriendList($userId);
        return $this->buildResponse(
            array(
                'inviteFriendList' => $data['inviteFriendList'],
                'num' => $data['num']
            )
        );
    }
}